package org.groupg.model;

public class OrgInfo {
    private String orgid;
    private String orgname;
    private String orgtype;

    public String getOrgid() {
        return orgid;
    }

    public void setOrgid(String orgid) {
        this.orgid = orgid;
    }

    public String getOrgname() {
        return orgname;
    }

    public void setOrgname(String orgname) {
        this.orgname = orgname;
    }

    public String getOrgtype() {
        return orgtype;
    }

    public void setOrgtype(String orgtype) {
        this.orgtype = orgtype;
    }

    public OrgInfo(String orgid, String orgname, String orgtype) {
        this.orgid = orgid;
        this.orgname = orgname;
        this.orgtype = orgtype;
    }

    @Override
    public String toString() {
        return "orginfo{" +
                "orgid='" + orgid + '\'' +
                ", orgname='" + orgname + '\'' +
                ", orgtype='" + orgtype + '\'' +
                '}';
    }
    public String getInsertSQLString() {
        return String.format("INSERT INTO orginfo (orgid, orgname, orgtype) VALUES('"+orgid+"','"+orgname+"','"+orgtype+"');");
    }
}
